<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!--  ${rudia.z_getRequestedSessionId } -->
<!-- JQUERY CORE -->
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-1.11.1.min.js"></script>
<%-- <script type="text/javascript" src="${ctx}/plugin/jquery/jquery-2.1.0.min.js"></script> --%>

<!-- JQUERY UI -->
<link rel="stylesheet" type="text/css" href="${ctx}/plugin/jquery/ui/theme/<spring:message code="layout.theme" />/jquery-ui.custom.css" />
<script type="text/javascript" src="${ctx}/plugin/jquery/ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/ui/jquery.ui.datepicker-ko.js"></script>

<!-- Jqgrid -->
<link  rel="stylesheet" type="text/css"  href="${ctx}/plugin/jquery/jqgrid/ui.jqgrid.css" />
<script type="text/javascript" src="${ctx}/plugin/jquery/jqgrid/grid.locale-kr.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jqgrid/jquery.jqGrid-4.6.0.min.js"></script>



<!-- JQUERY AJAXFILEUPLOAD -->
<script type="text/javascript" src="${ctx}/plugin/jquery/ajaxfileupload/ajaxfileupload-2.1.js"></script>

<!-- FORM VALIDATION -->
<script type="text/javascript" src="${ctx}/plugin/jquery/validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/validation/additional-methods.js"></script>

<!-- Print Privew -->
<script type="text/javascript" src="${ctx}/plugin/jquery/printElement/jquery.printelement.js"></script>

<!-- Rudia Calendar -->
<link  rel="stylesheet" type="text/css"  href="${ctx}/plugin/jquery/rudia/rudia.css" />
<script type="text/javascript" src="${ctx}/plugin/jquery/rudia/rudia.js"></script>
										   
<!-- Number Format-->
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-number-master/jquery.number.js"></script>

<!-- tzSelect CSS-->
<%-- <link  rel="stylesheet" type="text/css"  href="${ctx}/plugin/jquery/tzSelect/css/styles.css" /> --%>
<%-- <script type="text/javascript" src="${ctx}/plugin/jquery/tzSelect/js/script.js"></script> --%>
										   
<!-- Bootstrap Theme -->
<%-- <link  rel="stylesheet" type="text/css"  href="${ctx}/plugin/bootstrap/css/bootstrap.min.css" /> --%>
<%-- <link  rel="stylesheet" type="text/css"  href="${ctx}/plugin/bootstrap/css/bootstrap-theme.min.css" /> --%>
<%-- <script type="text/javascript" src="${ctx}/plugin/bootstrap/js/bootstrap.min.js"></script> --%>


<!-- MAIN Theme -->
<link  rel="stylesheet" type="text/css"  media="screen" href="${ctx}/style/theme/base/mainweb.css" />
<link  rel="stylesheet" type="text/css"  media="print" href="${ctx}/style/theme/base/mainprint.css" />
<script type="text/javascript" src="${ctx}/js/LAYOUT.js"></script>


<!-- MAIN JS -->
<script type="text/javascript" src="${ctx}/js/FUNCTION.js"></script>
<script type="text/javascript" src="${ctx}/js/VALIDATION.js"></script>



<script type="text/javascript">


jQuery.extend({
    handleError: function( s, xhr, status, e ) {
        // If a local callback was specified, fire it
        if ( s.error )
            s.error( xhr, status, e );
        // If we have some XML response text (e.g. from an AJAX call) then log it in the console
        else if(xhr.responseText)
            console.log(xhr.responseText);
    }    
});


function RU_GET_CSS_MSG(dv, msgParam){
	var message;
	msgParam = " "+msgParam
	if(dv=="success"){
		message = '<div class="ui-state-highlight ui-corner-all">'+
        '<span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>' +
        "<spring:message code="success.request.msg" />" +msgParam +
        '</div>';
	}
	else if(dv=="fail"){
		message = '<div class="ui-state-highlight ui-corner-all">'+
        '<span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>' +
        "<spring:message code="fail.request.msg" />" +msgParam +
        '</div>';
	}
	else if(dv=="message"){
		message = '<div class="ui-state-highlight ui-corner-all">'+
        '<span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>'
         +msgParam +
        '</div>';
	}else{
		'<div></div>'
	}
	return message;
	
}
</script>